<ui:composition xmlns="http://www.w3.org/1999/xhtml"
    xmlns:s="http://jboss.org/schema/seam/taglib"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:p="http://primefaces.org/ui" template="layout/template.xhtml"
    xmlns:pm="http://primefaces.org/mobile" contentType="text/html"
    renderKitId="PRIMEFACES_MOBILE">
  <ui:define name="body">
    <p:dataList type="inset" styleClass="ui-li-custom">
      <f:attribute name="swatch" value="e" />
      <f:attribute name="dividerSwatch" value="e" />
      <f:facet name="header">会议室信息：</f:facet>
      <p:outputPanel layout="block">
      <br/>
        <p>
          <p:outputLabel for="mrName">会议室名称：</p:outputLabel>
          <h:outputText id="mrName" value="#{meetingRoom.mrName}" />
        </p>
        <br/>
        <p>
          <p:outputLabel for="mrType">会议室类型：</p:outputLabel>
          <h:outputText id="mrType" value="#{meetingRoom.mrType}" />
        </p><br/>
        <p>
          <p:outputLabel for="mrAddr">会议室地址：</p:outputLabel>
          <h:outputText id="mrAddr" value="#{meetingRoom.mrAddr}" />
        </p><br/>
        <p>
          <p:outputLabel for="mrSize">可容纳人数：</p:outputLabel>
          <h:outputText id="mrSize" value="#{meetingRoom.mrSize}" />
        </p><br/>
        <p>
          <p:outputLabel for="mrMemo">备注：</p:outputLabel>
          <br />
          <h:outputText id="mrMemo" value="#{meetingRoom.mrMemo}" />
          
        </p>
        <br/>
      </p:outputPanel>
    </p:dataList>
    <h:form rendered="#{!param['delFlg']}">
      <pm:buttonGroup orientation="horizontal">
        <h:commandButton action="booking" value="预约">
          <f:setPropertyActionListener value="#{meetingRoom.mrId}" target="#{meetingRoomBookingAction.meetingRoomDto.mrId}"/>
        </h:commandButton>
        <h:commandButton value="取消" action="cancel" />
      </pm:buttonGroup>
    </h:form>
    <h:form rendered="#{param['delFlg']}">
      <h:outputText value="确定删除吗？" />
      <pm:buttonGroup orientation="horizontal">
        <h:commandButton id="yes1" value="是"
                action="#{meetingRoomAction.delete}" />
        <h:commandButton value="否" action="reset" />
      </pm:buttonGroup>
    </h:form>
  </ui:define>
</ui:composition>
